Optimal. Leaf size=46 \[ -\frac{2 b^2 \left (a+b \sqrt{x}\right )^{p+1} \, _2F_1\left (3,p+1;p+2;\frac{\sqrt{x} b}{a}+1\right )}{a^3 (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0188881, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {266, 65} \[ -\frac{2 b^2 \left (a+b \sqrt{x}\right )^{p+1} \, _2F_1\left (3,p+1;p+2;\frac{\sqrt{x} b}{a}+1\right )}{a^3 (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 65
Rubi steps
\begin{align*} \int \frac{\left (a+b \sqrt{x}\right )^p}{x^2} \, dx &=2 \operatorname{Subst}\left (\int \frac{(a+b x)^p}{x^3} \, dx,x,\sqrt{x}\right )\\ &=-\frac{2 b^2 \left (a+b \sqrt{x}\right )^{1+p} \, _2F_1\left (3,1+p;2+p;1+\frac{b \sqrt{x}}{a}\right )}{a^3 (1+p)}\\ \end{align*}
Mathematica [A] time = 0.0098022, size = 46, normalized size = 1. \[ -\frac{2 b^2 \left (a+b \sqrt{x}\right )^{p+1} \, _2F_1\left (3,p+1;p+2;\frac{\sqrt{x} b}{a}+1\right )}{a^3 (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.019, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}} \left ( a+b\sqrt{x} \right ) ^{p}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \sqrt{x} + a\right )}^{p}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (b \sqrt{x} + a\right )}^{p}}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 7.46967, size = 42, normalized size = 0.91 \begin{align*} - \frac{2 b^{p} x^{\frac{p}{2}} \Gamma \left (2 - p\right ){{}_{2}F_{1}\left (\begin{matrix} - p, 2 - p \\ 3 - p \end{matrix}\middle |{\frac{a e^{i \pi }}{b \sqrt{x}}} \right )}}{x \Gamma \left (3 - p\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \sqrt{x} + a\right )}^{p}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]